MuleSoft Accelerator for SAP icon

MuleSoft Accelerator for SAP

(0 reviews)

Salesforce setup guide

The following describes prerequisite setup steps you must make in order to use the quote-to-cash use case. The scripts required in the steps below are located in this template:

  1. Click on the Salesforce Setup icon and select Developer Console -> Debug-> Open Execute Anonymous Window. Copy and paste the script from /src/test/scripts/accounts-push-topic.apxc to the window and execute, which creates a push topic on the account object.
  2. Click on the Salesforce Setup icon and select Developer Console -> Debug-> Open Execute Anonymous Window. Copy and paste the script from /src/test/scripts/contacts-push-topic.apxc to the window and execute, which creates a push topic on the contact object.
  3. Configure the following platform event for orders:
    • Click on the Salesforce Setup icon and select 'Platform Events'. Click on the New Platform Event button and enter the following:
      Singular Label: OrderPlatformEvent
      Plural Label: OrderPlatformEvents
      Object Name Order: Order
      Publish Behavior: Publish After Commit
    • Enter the following fields in the 'Custom Fields & Relationships' Section:
      AccountId
      Description
      Global_SalesOrder_Id
      Id
      Name
      OrderNumber
      PoNumber
      Status
      TotalAmount
    • Click on the Salesforce Setup icon and select 'Object Manager' and search for Order Object -> Click on 'Triggers' -> New. Copy and paste the script from /src/test/scripts/orders-event-publisher.tgr, which creates a trigger to push an event when an order is created by a business user.

Reviews